const { defineConfig } = require('@vue/cli-service')

// vue.config.js  gzip  不需要注释即可
const IS_PROD = ['prod', 'production'].includes(process.env.NODE_ENV)
//gzip压缩
const productionGzipExtensions = /\.(js|css|json|html)(\?.*)?$/i; //匹配格式
// const CompressionWebpackPlugin = require("compression-webpack-plugin");


module.exports = defineConfig({
    transpileDependencies: true,
    publicPath:'./',
    lintOnSave: false,

    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'scss',
            patterns: []
        }
    },

    runtimeCompiler: true,

    productionSourceMap: false,

    pages: {
        // tips: {
        //     entry: 'src/pages/tips/main.js',
        //     template: 'public/index.html',
        //     filename: 'tips.html',
        //     title: 'tips',
        //     chunks: ['chunk-vendors', 'chunk-common', 'tips']
        // },
		login: {
            entry: 'src/pages/login/main.js',
            template: 'public/login.html',
            filename: 'login.html',
            title: 'login',
            chunks: ['chunk-vendors', 'chunk-common', 'login']
        },
        
    },

    assetsDir: 'static'
})
